package cn.sxw.ld.module.user.service;

import cn.sxw.ld.module.user.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * ClassName:UserService
 * Package:cn.sjxy.graduation.service
 * Description:
 *
 * @Date:2022/6/24 16:38
 * @Author:SXW
 */
@Service
public interface UserService extends IService<User> {

    /**
     * 获取验证码
     *
     * @param user    回传用户
     * @param session
     * @return
     */
    boolean toSendMsg(User user, HttpSession session);

    /**
     * 登录
     *
     * @param map     获取前端传来带有电话与验证码的集合
     * @param session
     * @return
     */
    User login(Map map, HttpSession session);

    /**
     * 修改目标 user
     *
     * @param user
     */
    void updateUser(User user);
}
